package com.example.fittrack.domain.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@JsonIgnoreProperties(ignoreUnknown = true)
@EqualsAndHashCode()
@Data
@Entity
@Table(name = "t_user")
public class UserPo {

    @Id
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Column(name = "username")
    private String username;

    @Column(name = "password")
    private String password;

    /**
     * 1.启动
     * 0.禁用
     */
    private Integer status;

    @Column(name = "createTime")
    private String createTime;

}
